﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class Program
    {
        static void Main(string[] args)
        {
            //多维数组
            string[,] arr = new string[11, 5];
            for(int i = 0; i < arr.GetLongLength(0); i++)
            {
                for(int j = 0; j < arr.GetLongLength(1); j++)
                {
                    arr[i, j] = "666";
                }
            }
            arr.PrintArrayInfo();

            string[] str =
            {
                "华夫饼钕",
                "科技感比较"
            };
            str.PrintStrInfo();
          

            int [] vs= { 20, 48, 56, 96, 75};
            int  sum = 0;  
            int  avg = 0;
            foreach (int  a in vs)
            {
             sum = sum + a;
             }
            avg = sum / vs.Length;
            Console.WriteLine("总成绩为：" + sum);
            Console.WriteLine("平均成绩为：" + avg);    
            

            String str1 = "天天来摇滚，原味汤粉";
            //循环
            foreach (var b in str1)
            {
                Console.WriteLine(b);
            }
            //字符串拆分为数组
            var str2 = str1.Split('原');
            str2.PrintStrInfo();

        }
    }
}
